<div id="nav" style="position:relative;line-height:1.6em;">
	<a href="/">
	<img src="{{ STATIC_URL }}smallerp.png" align="left" title="分享家首页" alt="分享家首页" style="position:absolute;top:6px;left:0px;" />
	</a>
	<ul id="nav_menu" style="margin-left:145px;">
		<li {% if not app  %}class="current"{%endif%} >
			<a href="/">
			<strong>首页</strong>
			</a>
		</li>
		<ul>
			<li {% if app == "warehouse_pr" %}class="current"{% endif %}>
				<a href="/erp/pr">
				<strong>采购申请</strong>
				</a>
			</li>
			<li {% if app == "warehouse_po" %}class="current"{% endif %}>
				<a href="/erp/po/">
				<strong>采购订单</strong>
				</a>
			</li>
			<li {% if app == "warehouse_pa" %}class="current"{% endif %}>
				<a href="/erp/pa/">
				<strong>付款</strong>
				</a>
			</li>
			<li {% if app == "warehouse_re" %}class="current"{% endif %}>
				<a href="/erp/re/">
				<strong>采购入库</strong>
				</a>
			</li>
			<li {% if app == "warehouse_so" %}class="current"{% endif %}>
				<a href="/erp/so/">
				<strong>领用出库</strong>
				</a>
			</li>
		</ul>
		<li {% if app == "commodity" %}class="current"{% endif %}>
			<a href="/erp/commodity/">
			<strong>库存</strong>
			</a>
		</li>
		<li {% if app == "project" %}class="current"{% endif %}>
			<a href="/erp/project/">
			<strong>项目</strong>
			</a>
		</li>
		<!--li {% if app == "project" %}class="current"{% endif %}>
			<a href="/project/">
			<strong>项目</strong>
			</a>
		</li-->
		<!--li {% if app == "customer" %}class="current"{% endif %}>
			<a href="/customer/">
			<strong>供应商</strong>
			</a>
		</li-->
		<!--li {% if app == "user_guide" %}class="current"{% endif %}>
			<a href="/user_guide/">
			<strong>帮助</strong>
			</a>
		</li-->
	</ul>
	<div id="top_search">
		<form method="post" action="/search.j">
			<input class="sl" name="keyword" tabindex="100" />
			<input type="submit" value="搜 索" name="do_search" tabindex="101" class="g" />
		</form>
	</div>
</div>
<div id="searchbar" style="background-color:#EBF4FA;">
	<span id="discuss_forum">
		{% if app == "__warehouse" %}
		快捷功能列表：
		{% if  perms.warehouse.创建采购申请单 %}
		<a href="/warehouse/pr/add" class="t">创建采购申请单</a>&nbsp;{% endif %}
		{% if  perms.warehouse.创建采购订单 %}
		<a href="/warehouse/po/add" class="t">创建采购订单</a>&nbsp;{% endif %}
		{% endif %}
	</span>
	<span class="fright">
		{% if user.is_authenticated %}
		你好，{% if user.first_name%}{{user.last_name }}{{user.first_name }}{% else %}{{ user.username }}{% endif %}&nbsp;，我要
		<a id="rightlogin" href="/logout.html" class="t" rel="nofollow">注销</a>
		{% else %}
		你好，请 &nbsp;
		<a id="rightlogin" href="/login.html" class="t" rel="nofollow">登录</a>&nbsp;
		{% endif %}
	</span>
	<div id="subnav">
	</div>
</div>
